﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptInsuranceByMonth : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRTableCell colHealth;
        private XRTableCell colHealthInsurance;
        private XRTableCell colHealthInsurance1;
        private XRTableCell colSocial;
        private XRTableCell colSocialInsurance;
        private XRTableCell colSocialInsurance1;
        private XRTableCell colTotalInsurance;
        private XRTableCell colUnemployment;
        private XRTableCell colUnemploymentInsurance;
        private XRTableCell colUnemploymentInsurance1;
        private IContainer components;
        private DetailBand Detail;
        private XRLabel gBandHealthInsurance;
        private XRLabel gBandSocialInsurance;
        private XRLabel gBandUnemploymentInsurance;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Year;
        private XRPictureBox ptPhoto;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRTableCell txtBasicSalary;
        private XRTableCell txtBasicSalary1;
        private XRLabel txtCompany;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtHealth;
        private XRTableCell txtHealthInsurance;
        private XRTableCell txtHealthInsurance1;
        private XRTableCell txtLastName;
        private XRTableCell txtOrder;
        private XRTableCell txtSocial;
        private XRTableCell txtSocialInsurance;
        private XRTableCell txtSocialInsurance1;
        private XRLabel txtTitle;
        private XRTableCell txtTotalBasicSalary;
        private XRTableCell txtTotalBasicSalary1;
        private XRTableCell txtTotalHealth;
        private XRTableCell txtTotalHealthInsurance;
        private XRTableCell txtTotalHealthInsurance1;
        private XRTableCell txtTotalInsurance;
        private XRTableCell txtTotalSocial;
        private XRTableCell txtTotalSocialInsurance;
        private XRTableCell txtTotalSocialInsurance1;
        private XRTableCell txtTotalTotalInsurance;
        private XRTableCell txtTotalUnemployment;
        private XRTableCell txtTotalUnemploymentInsurance;
        private XRTableCell txtTotalUnemploymentInsurance1;
        private XRTableCell txtUnemployment;
        private XRTableCell txtUnemploymentInsurance;
        private XRTableCell txtUnemploymentInsurance1;
        private XRLabel txtUnit;
        private XRLabel xrLabel2;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable3;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;

        public rptInsuranceByMonth()
        {
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Year = 0;
            this.m_Month = 0;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
        }

        public rptInsuranceByMonth(int Level, string Code, int Year, int Month)
        {
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Year = 0;
            this.m_Month = 0;
            this.m_Order = 0;
            this.components = null;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Year = Year;
            this.m_Month = Month;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.txtLastName = new XRTableCell();
            this.txtBasicSalary = new XRTableCell();
            this.txtBasicSalary1 = new XRTableCell();
            this.txtSocialInsurance1 = new XRTableCell();
            this.txtSocialInsurance = new XRTableCell();
            this.txtSocial = new XRTableCell();
            this.txtHealthInsurance1 = new XRTableCell();
            this.txtHealthInsurance = new XRTableCell();
            this.txtHealth = new XRTableCell();
            this.txtUnemploymentInsurance1 = new XRTableCell();
            this.txtUnemploymentInsurance = new XRTableCell();
            this.txtUnemployment = new XRTableCell();
            this.txtTotalInsurance = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.ptPhoto = new XRPictureBox();
            this.txtTitle = new XRLabel();
            this.txtUnit = new XRLabel();
            this.txtAddress = new XRLabel();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.gBandUnemploymentInsurance = new XRLabel();
            this.gBandHealthInsurance = new XRLabel();
            this.gBandSocialInsurance = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.colSocialInsurance1 = new XRTableCell();
            this.colSocialInsurance = new XRTableCell();
            this.colSocial = new XRTableCell();
            this.colHealthInsurance1 = new XRTableCell();
            this.colHealthInsurance = new XRTableCell();
            this.colHealth = new XRTableCell();
            this.colUnemploymentInsurance1 = new XRTableCell();
            this.colUnemploymentInsurance = new XRTableCell();
            this.colUnemployment = new XRTableCell();
            this.colTotalInsurance = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.GroupFooter1 = new GroupFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell27 = new XRTableCell();
            this.txtTotalBasicSalary = new XRTableCell();
            this.txtTotalBasicSalary1 = new XRTableCell();
            this.txtTotalSocialInsurance1 = new XRTableCell();
            this.txtTotalSocialInsurance = new XRTableCell();
            this.txtTotalSocial = new XRTableCell();
            this.txtTotalHealthInsurance1 = new XRTableCell();
            this.txtTotalHealthInsurance = new XRTableCell();
            this.txtTotalHealth = new XRTableCell();
            this.txtTotalUnemploymentInsurance1 = new XRTableCell();
            this.txtTotalUnemploymentInsurance = new XRTableCell();
            this.txtTotalUnemployment = new XRTableCell();
            this.txtTotalTotalInsurance = new XRTableCell();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable3.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 8.25f);
            this.xrTable2.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1139f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.txtLastName, this.txtBasicSalary, this.txtBasicSalary1, this.txtSocialInsurance1, this.txtSocialInsurance, this.txtSocial, this.txtHealthInsurance1, this.txtHealthInsurance, this.txtHealth, this.txtUnemploymentInsurance1, this.txtUnemploymentInsurance, this.txtUnemployment, this.txtTotalInsurance });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.1360080736281245;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "[EmployeeCode]";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.29466829892690849;
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "[FirstName] [LastName]";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.66579412593551779;
            this.txtLastName.Name = "txtLastName";
            this.txtLastName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtLastName.StylePriority.UsePadding = false;
            this.txtLastName.StylePriority.UseTextAlignment = false;
            this.txtLastName.Text = "[InsuranceCode]";
            this.txtLastName.TextAlignment = TextAlignment.MiddleCenter;
            this.txtLastName.Weight = 0.50091155174843038;
            this.txtBasicSalary.Name = "txtBasicSalary";
            this.txtBasicSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtBasicSalary.StylePriority.UsePadding = false;
            this.txtBasicSalary.StylePriority.UseTextAlignment = false;
            this.txtBasicSalary.Text = "txtBasicSalary";
            this.txtBasicSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtBasicSalary.Weight = 0.33613831521678511;
            this.txtBasicSalary1.Name = "txtBasicSalary1";
            this.txtBasicSalary1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtBasicSalary1.StylePriority.UsePadding = false;
            this.txtBasicSalary1.StylePriority.UseTextAlignment = false;
            this.txtBasicSalary1.Text = "txtBasicSalary1";
            this.txtBasicSalary1.TextAlignment = TextAlignment.MiddleRight;
            this.txtBasicSalary1.Weight = 0.33613795201829161;
            this.txtSocialInsurance1.Name = "txtSocialInsurance1";
            this.txtSocialInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSocialInsurance1.StylePriority.UsePadding = false;
            this.txtSocialInsurance1.StylePriority.UseTextAlignment = false;
            this.txtSocialInsurance1.Text = "txtSocialInsurance1";
            this.txtSocialInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtSocialInsurance1.Weight = 0.33613793825454308;
            this.txtSocialInsurance.Name = "txtSocialInsurance";
            this.txtSocialInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSocialInsurance.StylePriority.UsePadding = false;
            this.txtSocialInsurance.StylePriority.UseTextAlignment = false;
            this.txtSocialInsurance.Text = "txtSocialInsurance";
            this.txtSocialInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtSocialInsurance.Weight = 0.33613793117546181;
            this.txtSocial.Name = "txtSocial";
            this.txtSocial.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSocial.StylePriority.UsePadding = false;
            this.txtSocial.StylePriority.UseTextAlignment = false;
            this.txtSocial.Text = "txtSocial";
            this.txtSocial.TextAlignment = TextAlignment.MiddleRight;
            this.txtSocial.Weight = 0.33613792819840566;
            this.txtHealthInsurance1.Name = "txtHealthInsurance1";
            this.txtHealthInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtHealthInsurance1.StylePriority.UsePadding = false;
            this.txtHealthInsurance1.StylePriority.UseTextAlignment = false;
            this.txtHealthInsurance1.Text = "txtHealthInsurance1";
            this.txtHealthInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtHealthInsurance1.Weight = 0.33613794014329668;
            this.txtHealthInsurance.Name = "txtHealthInsurance";
            this.txtHealthInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtHealthInsurance.StylePriority.UsePadding = false;
            this.txtHealthInsurance.StylePriority.UseTextAlignment = false;
            this.txtHealthInsurance.Text = "txtHealthInsurance";
            this.txtHealthInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtHealthInsurance.Weight = 0.33613794314629686;
            this.txtHealth.Name = "txtHealth";
            this.txtHealth.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtHealth.StylePriority.UsePadding = false;
            this.txtHealth.StylePriority.UseTextAlignment = false;
            this.txtHealth.Text = "txtHealth";
            this.txtHealth.TextAlignment = TextAlignment.MiddleRight;
            this.txtHealth.Weight = 0.33613794314634615;
            this.txtUnemploymentInsurance1.Name = "txtUnemploymentInsurance1";
            this.txtUnemploymentInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtUnemploymentInsurance1.StylePriority.UsePadding = false;
            this.txtUnemploymentInsurance1.StylePriority.UseTextAlignment = false;
            this.txtUnemploymentInsurance1.Text = "txtUnemploymentInsurance1";
            this.txtUnemploymentInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtUnemploymentInsurance1.Weight = 0.33613794439887007;
            this.txtUnemploymentInsurance.Name = "txtUnemploymentInsurance";
            this.txtUnemploymentInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtUnemploymentInsurance.StylePriority.UsePadding = false;
            this.txtUnemploymentInsurance.StylePriority.UseTextAlignment = false;
            this.txtUnemploymentInsurance.Text = "txtUnemploymentInsurance";
            this.txtUnemploymentInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtUnemploymentInsurance.Weight = 0.33613794439901812;
            this.txtUnemployment.Font = new Font("Times New Roman", 8.25f);
            this.txtUnemployment.Name = "txtUnemployment";
            this.txtUnemployment.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtUnemployment.StylePriority.UseFont = false;
            this.txtUnemployment.StylePriority.UsePadding = false;
            this.txtUnemployment.StylePriority.UseTextAlignment = false;
            this.txtUnemployment.Text = "txtUnemployment";
            this.txtUnemployment.TextAlignment = TextAlignment.MiddleRight;
            this.txtUnemployment.Weight = 0.33686565999878831;
            this.txtTotalInsurance.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.txtTotalInsurance.Name = "txtTotalInsurance";
            this.txtTotalInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalInsurance.StylePriority.UseFont = false;
            this.txtTotalInsurance.StylePriority.UsePadding = false;
            this.txtTotalInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalInsurance.Text = "txtTotalInsurance";
            this.txtTotalInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalInsurance.Weight = 0.33468295148414562;
            this.TopMargin.HeightF = 40f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 40f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.ptPhoto, this.txtTitle, this.txtUnit, this.txtAddress, this.txtCompany, this.xrLabel2 });
            this.ReportHeader.HeightF = 123f;
            this.ReportHeader.Name = "ReportHeader";
            this.ptPhoto.LocationFloat = new PointFloat(1.000048f, 6.00001f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 58.33333f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1139f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "DANH S\x00c1CH THAM GIA BẢO HIỂM X\x00c3 HỘI TH\x00c1NG 00/0000";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.Font = new Font("Times New Roman", 9.75f);
            this.txtUnit.LocationFloat = new PointFloat(745.0835f, 10.00001f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(393.9165f, 17.70833f);
            this.txtUnit.StylePriority.UseFont = false;
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleRight;
            this.txtAddress.Font = new Font("Times New Roman", 9.75f);
            this.txtAddress.LocationFloat = new PointFloat(147.0416f, 31.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(408.375f, 17.70833f);
            this.txtAddress.StylePriority.UseFont = false;
            this.txtAddress.Text = "txtAddress";
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(93.25005f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f);
            this.xrLabel2.LocationFloat = new PointFloat(93.25005f, 31.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(53.7916f, 17.70833f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.Text = "Địa Chỉ:";
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.gBandUnemploymentInsurance, this.gBandHealthInsurance, this.gBandSocialInsurance, this.xrTable1 });
            this.GroupHeader1.HeightF = 54.58333f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.gBandUnemploymentInsurance.BackColor = Color.WhiteSmoke;
            this.gBandUnemploymentInsurance.Borders = BorderSide.All;
            this.gBandUnemploymentInsurance.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.gBandUnemploymentInsurance.LocationFloat = new PointFloat(866.147f, 0f);
            this.gBandUnemploymentInsurance.Name = "gBandUnemploymentInsurance";
            this.gBandUnemploymentInsurance.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.gBandUnemploymentInsurance.SizeF = new SizeF(205f, 20.83333f);
            this.gBandUnemploymentInsurance.StylePriority.UseBackColor = false;
            this.gBandUnemploymentInsurance.StylePriority.UseBorders = false;
            this.gBandUnemploymentInsurance.StylePriority.UseFont = false;
            this.gBandUnemploymentInsurance.StylePriority.UseTextAlignment = false;
            this.gBandUnemploymentInsurance.Text = "Bảo hiểm thất nghiệp";
            this.gBandUnemploymentInsurance.TextAlignment = TextAlignment.MiddleCenter;
            this.gBandHealthInsurance.BackColor = Color.WhiteSmoke;
            this.gBandHealthInsurance.Borders = BorderSide.All;
            this.gBandHealthInsurance.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.gBandHealthInsurance.LocationFloat = new PointFloat(661.147f, 0f);
            this.gBandHealthInsurance.Name = "gBandHealthInsurance";
            this.gBandHealthInsurance.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.gBandHealthInsurance.SizeF = new SizeF(206.0001f, 20.83333f);
            this.gBandHealthInsurance.StylePriority.UseBackColor = false;
            this.gBandHealthInsurance.StylePriority.UseBorders = false;
            this.gBandHealthInsurance.StylePriority.UseFont = false;
            this.gBandHealthInsurance.StylePriority.UseTextAlignment = false;
            this.gBandHealthInsurance.Text = "Bảo hiểm y tế";
            this.gBandHealthInsurance.TextAlignment = TextAlignment.MiddleCenter;
            this.gBandSocialInsurance.BackColor = Color.WhiteSmoke;
            this.gBandSocialInsurance.Borders = BorderSide.Bottom | BorderSide.Top | BorderSide.Left;
            this.gBandSocialInsurance.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.gBandSocialInsurance.LocationFloat = new PointFloat(458.147f, 0f);
            this.gBandSocialInsurance.Name = "gBandSocialInsurance";
            this.gBandSocialInsurance.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.gBandSocialInsurance.SizeF = new SizeF(205f, 20.83333f);
            this.gBandSocialInsurance.StylePriority.UseBackColor = false;
            this.gBandSocialInsurance.StylePriority.UseBorders = false;
            this.gBandSocialInsurance.StylePriority.UseFont = false;
            this.gBandSocialInsurance.StylePriority.UseTextAlignment = false;
            this.gBandSocialInsurance.Text = "Bảo hiểm x\x00e3 hội";
            this.gBandSocialInsurance.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1139f, 54.58333f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.BackColor = Color.WhiteSmoke;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell1, this.xrTableCell14, this.xrTableCell13, this.xrTableCell2, this.xrTableCell4, this.xrTableCell18, this.colSocialInsurance1, this.colSocialInsurance, this.colSocial, this.colHealthInsurance1, this.colHealthInsurance, this.colHealth, this.colUnemploymentInsurance1, this.colUnemploymentInsurance, this.colUnemployment, this.colTotalInsurance });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.StylePriority.UseBackColor = false;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell1.Weight = 0.13600821575901695;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.StylePriority.UseFont = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "M\x00e3 nh\x00e2n vi\x00ean";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell14.Weight = 0.29466831543271532;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "Họ v\x00e0 t\x00ean";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.66579440980547322;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "Số sổ BHXH";
            this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell2.Weight = 0.50091174516894477;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Lương căn bản";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.33613790551208078;
            this.xrTableCell18.CanGrow = false;
            this.xrTableCell18.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "Quỹ lương đ\x00f3ng BH";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.33613806177096273;
            this.colSocialInsurance1.CanGrow = false;
            this.colSocialInsurance1.Name = "colSocialInsurance1";
            this.colSocialInsurance1.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colSocialInsurance1.StylePriority.UsePadding = false;
            this.colSocialInsurance1.StylePriority.UseTextAlignment = false;
            this.colSocialInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colSocialInsurance1.TextAlignment = TextAlignment.BottomCenter;
            this.colSocialInsurance1.Weight = 0.33613804981853351;
            this.colSocialInsurance.CanGrow = false;
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colSocialInsurance.StylePriority.UsePadding = false;
            this.colSocialInsurance.StylePriority.UseTextAlignment = false;
            this.colSocialInsurance.Text = "Trừ v\x00e0o lương";
            this.colSocialInsurance.TextAlignment = TextAlignment.BottomCenter;
            this.colSocialInsurance.Weight = 0.33613804981854334;
            this.colSocial.CanGrow = false;
            this.colSocial.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.colSocial.Name = "colSocial";
            this.colSocial.Padding = new PaddingInfo(0, 0, 0, 10, 100f);
            this.colSocial.StylePriority.UseFont = false;
            this.colSocial.StylePriority.UsePadding = false;
            this.colSocial.StylePriority.UseTextAlignment = false;
            this.colSocial.Text = "Tổng cộng";
            this.colSocial.TextAlignment = TextAlignment.BottomCenter;
            this.colSocial.Weight = 0.3361380482680863;
            this.colHealthInsurance1.CanGrow = false;
            this.colHealthInsurance1.Name = "colHealthInsurance1";
            this.colHealthInsurance1.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colHealthInsurance1.StylePriority.UsePadding = false;
            this.colHealthInsurance1.StylePriority.UseTextAlignment = false;
            this.colHealthInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colHealthInsurance1.TextAlignment = TextAlignment.BottomCenter;
            this.colHealthInsurance1.Weight = 0.33613804970442818;
            this.colHealthInsurance.CanGrow = false;
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colHealthInsurance.StylePriority.UsePadding = false;
            this.colHealthInsurance.StylePriority.UseTextAlignment = false;
            this.colHealthInsurance.Text = "Trừ v\x00e0o lương";
            this.colHealthInsurance.TextAlignment = TextAlignment.BottomCenter;
            this.colHealthInsurance.Weight = 0.33613805053671431;
            this.colHealth.CanGrow = false;
            this.colHealth.Name = "colHealth";
            this.colHealth.Padding = new PaddingInfo(0, 0, 0, 10, 100f);
            this.colHealth.StylePriority.UsePadding = false;
            this.colHealth.StylePriority.UseTextAlignment = false;
            this.colHealth.Text = "Tổng cộng";
            this.colHealth.TextAlignment = TextAlignment.BottomCenter;
            this.colHealth.Weight = 0.33613805053671414;
            this.colUnemploymentInsurance1.CanGrow = false;
            this.colUnemploymentInsurance1.Name = "colUnemploymentInsurance1";
            this.colUnemploymentInsurance1.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colUnemploymentInsurance1.StylePriority.UsePadding = false;
            this.colUnemploymentInsurance1.StylePriority.UseTextAlignment = false;
            this.colUnemploymentInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colUnemploymentInsurance1.TextAlignment = TextAlignment.BottomCenter;
            this.colUnemploymentInsurance1.Weight = 0.33613805095285737;
            this.colUnemploymentInsurance.CanGrow = false;
            this.colUnemploymentInsurance.Name = "colUnemploymentInsurance";
            this.colUnemploymentInsurance.Padding = new PaddingInfo(0, 0, 0, 2, 100f);
            this.colUnemploymentInsurance.StylePriority.UsePadding = false;
            this.colUnemploymentInsurance.StylePriority.UseTextAlignment = false;
            this.colUnemploymentInsurance.Text = "Trừ v\x00e0o lương";
            this.colUnemploymentInsurance.TextAlignment = TextAlignment.BottomCenter;
            this.colUnemploymentInsurance.Weight = 0.3361380509528572;
            this.colUnemployment.CanGrow = false;
            this.colUnemployment.Name = "colUnemployment";
            this.colUnemployment.Padding = new PaddingInfo(0, 0, 0, 10, 100f);
            this.colUnemployment.StylePriority.UsePadding = false;
            this.colUnemployment.StylePriority.UseTextAlignment = false;
            this.colUnemployment.Text = "Tổng cộng";
            this.colUnemployment.TextAlignment = TextAlignment.BottomCenter;
            this.colUnemployment.Weight = 0.33613805095285232;
            this.colTotalInsurance.CanGrow = false;
            this.colTotalInsurance.Name = "colTotalInsurance";
            this.colTotalInsurance.Text = "Tổng cộng";
            this.colTotalInsurance.Weight = 0.33541132310244226;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrTable3 });
            this.ReportFooter.HeightF = 100f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrTable3.LocationFloat = new PointFloat(4.768372E-05f, 21.875f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4 });
            this.xrTable3.SizeF = new SizeF(1139f, 62.5f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell8, this.xrTableCell9 });
            this.xrTableRow3.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.StylePriority.UseFont = false;
            this.xrTableRow3.StylePriority.UseTextAlignment = false;
            this.xrTableRow3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.Text = "Người lập bảng";
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 1.0;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Text = "Kế to\x00e1n trưởng";
            this.xrTableCell8.Weight = 1.0;
            this.xrTableCell9.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.StylePriority.UseFont = false;
            this.xrTableCell9.StylePriority.UseTextAlignment = false;
            this.xrTableCell9.Text = "Gi\x00e1m đốc";
            this.xrTableCell9.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell9.Weight = 1.0;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell10, this.xrTableCell11, this.xrTableCell12 });
            this.xrTableRow4.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.StylePriority.UseFont = false;
            this.xrTableRow4.StylePriority.UseTextAlignment = false;
            this.xrTableRow4.TextAlignment = TextAlignment.TopCenter;
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 1.0;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell11.Weight = 1.0;
            this.xrTableCell12.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.StylePriority.UseFont = false;
            this.xrTableCell12.StylePriority.UseTextAlignment = false;
            this.xrTableCell12.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell12.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell12.Weight = 1.0;
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.xrTable4 });
            this.GroupFooter1.HeightF = 18.75f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.xrTable4.BackColor = Color.WhiteSmoke;
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable4.SizeF = new SizeF(1139f, 18.75f);
            this.xrTable4.StylePriority.UseBackColor = false;
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell27, this.txtTotalBasicSalary, this.txtTotalBasicSalary1, this.txtTotalSocialInsurance1, this.txtTotalSocialInsurance, this.txtTotalSocial, this.txtTotalHealthInsurance1, this.txtTotalHealthInsurance, this.txtTotalHealth, this.txtTotalUnemploymentInsurance1, this.txtTotalUnemploymentInsurance, this.txtTotalUnemployment, this.txtTotalTotalInsurance });
            this.xrTableRow5.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.StylePriority.UseFont = false;
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell27.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic | FontStyle.Bold);
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.xrTableCell27.StylePriority.UseFont = false;
            this.xrTableCell27.StylePriority.UsePadding = false;
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.Text = "Tổng Cộng:";
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell27.Weight = 0.86480043483298907;
            this.txtTotalBasicSalary.Multiline = true;
            this.txtTotalBasicSalary.Name = "txtTotalBasicSalary";
            this.txtTotalBasicSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalBasicSalary.StylePriority.UsePadding = false;
            this.txtTotalBasicSalary.StylePriority.UseTextAlignment = false;
            this.txtTotalBasicSalary.Text = "txtTotalBasicSalary";
            this.txtTotalBasicSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalBasicSalary.Weight = 0.18198063108318721;
            this.txtTotalBasicSalary1.Multiline = true;
            this.txtTotalBasicSalary1.Name = "txtTotalBasicSalary1";
            this.txtTotalBasicSalary1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalBasicSalary1.StylePriority.UsePadding = false;
            this.txtTotalBasicSalary1.StylePriority.UseTextAlignment = false;
            this.txtTotalBasicSalary1.Text = "txtTotalBasicSalary1";
            this.txtTotalBasicSalary1.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalBasicSalary1.Weight = 0.18198030844954127;
            this.txtTotalSocialInsurance1.Multiline = true;
            this.txtTotalSocialInsurance1.Name = "txtTotalSocialInsurance1";
            this.txtTotalSocialInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSocialInsurance1.StylePriority.UsePadding = false;
            this.txtTotalSocialInsurance1.StylePriority.UseTextAlignment = false;
            this.txtTotalSocialInsurance1.Text = "txtTotalSocialInsurance1";
            this.txtTotalSocialInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSocialInsurance1.Weight = 0.18198047179074417;
            this.txtTotalSocialInsurance.Multiline = true;
            this.txtTotalSocialInsurance.Name = "txtTotalSocialInsurance";
            this.txtTotalSocialInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSocialInsurance.StylePriority.UsePadding = false;
            this.txtTotalSocialInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalSocialInsurance.Text = "txtTotalSocialInsurance";
            this.txtTotalSocialInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSocialInsurance.Weight = 0.18198022880331965;
            this.txtTotalSocial.Multiline = true;
            this.txtTotalSocial.Name = "txtTotalSocial";
            this.txtTotalSocial.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSocial.StylePriority.UsePadding = false;
            this.txtTotalSocial.StylePriority.UseTextAlignment = false;
            this.txtTotalSocial.Text = "txtTotalSocial";
            this.txtTotalSocial.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSocial.Weight = 0.18198022981550965;
            this.txtTotalHealthInsurance1.Multiline = true;
            this.txtTotalHealthInsurance1.Name = "txtTotalHealthInsurance1";
            this.txtTotalHealthInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalHealthInsurance1.StylePriority.UsePadding = false;
            this.txtTotalHealthInsurance1.StylePriority.UseTextAlignment = false;
            this.txtTotalHealthInsurance1.Text = "txtTotalHealthInsurance1";
            this.txtTotalHealthInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalHealthInsurance1.Weight = 0.18198072034521307;
            this.txtTotalHealthInsurance.Multiline = true;
            this.txtTotalHealthInsurance.Name = "txtTotalHealthInsurance";
            this.txtTotalHealthInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalHealthInsurance.StylePriority.UsePadding = false;
            this.txtTotalHealthInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalHealthInsurance.Text = "txtTotalHealthInsurance";
            this.txtTotalHealthInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalHealthInsurance.Weight = 0.18198023057465207;
            this.txtTotalHealth.Multiline = true;
            this.txtTotalHealth.Name = "txtTotalHealth";
            this.txtTotalHealth.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalHealth.StylePriority.UsePadding = false;
            this.txtTotalHealth.StylePriority.UseTextAlignment = false;
            this.txtTotalHealth.Text = "txtTotalHealth";
            this.txtTotalHealth.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalHealth.Weight = 0.1819805573835814;
            this.txtTotalUnemploymentInsurance1.Multiline = true;
            this.txtTotalUnemploymentInsurance1.Name = "txtTotalUnemploymentInsurance1";
            this.txtTotalUnemploymentInsurance1.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalUnemploymentInsurance1.StylePriority.UsePadding = false;
            this.txtTotalUnemploymentInsurance1.StylePriority.UseTextAlignment = false;
            this.txtTotalUnemploymentInsurance1.Text = "txtTotalUnemploymentInsurance1";
            this.txtTotalUnemploymentInsurance1.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalUnemploymentInsurance1.Weight = 0.18198039404237859;
            this.txtTotalUnemploymentInsurance.Multiline = true;
            this.txtTotalUnemploymentInsurance.Name = "txtTotalUnemploymentInsurance";
            this.txtTotalUnemploymentInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalUnemploymentInsurance.StylePriority.UsePadding = false;
            this.txtTotalUnemploymentInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalUnemploymentInsurance.Text = "txtTotalUnemploymentInsurance";
            this.txtTotalUnemploymentInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalUnemploymentInsurance.Weight = 0.18198055346134559;
            this.txtTotalUnemployment.Multiline = true;
            this.txtTotalUnemployment.Name = "txtTotalUnemployment";
            this.txtTotalUnemployment.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalUnemployment.StylePriority.UsePadding = false;
            this.txtTotalUnemployment.StylePriority.UseTextAlignment = false;
            this.txtTotalUnemployment.Text = "txtTotalUnemployment";
            this.txtTotalUnemployment.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalUnemployment.Weight = 0.18237436892751982;
            this.txtTotalTotalInsurance.CanShrink = true;
            this.txtTotalTotalInsurance.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.txtTotalTotalInsurance.Multiline = true;
            this.txtTotalTotalInsurance.Name = "txtTotalTotalInsurance";
            this.txtTotalTotalInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalTotalInsurance.StylePriority.UseFont = false;
            this.txtTotalTotalInsurance.StylePriority.UsePadding = false;
            this.txtTotalTotalInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalTotalInsurance.Text = "txtTotalTotalInsurance";
            this.txtTotalTotalInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalTotalInsurance.Weight = 0.18119247281913251;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter, this.GroupFooter1 });
            base.Landscape = true;
            base.Margins = new Margins(15, 15, 40, 40);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable3.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            HRM_SALARY hrm_salary = new HRM_SALARY();
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            if (this.m_Level != 0)
            {
                if (this.m_Level == 1)
                {
                    HRM_BRANCH hrm_branch = new HRM_BRANCH();
                    hrm_branch.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_branch.BranchName;
                }
                else if (this.m_Level == 2)
                {
                    HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                    hrm_department.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_department.DepartmentName;
                }
                else if (this.m_Level == 3)
                {
                    HRM_GROUP hrm_group = new HRM_GROUP();
                    hrm_group.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_group.GroupName;
                }
            }
            table = hrm_salary.GetListInsurance(this.m_Level, this.m_Code, this.m_Month, this.m_Year);
            set.Tables.Add(table);
            base.DataSource = set;
            base.DataAdapter = table;
            base.DataMember = table.TableName;
            this.txtBasicSalary.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtBasicSalary1.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtSocialInsurance1.DataBindings.Add("Text", base.DataSource, "SocialInsurance1", "{0:##,##0}");
            this.txtSocialInsurance.DataBindings.Add("Text", base.DataSource, "SocialInsurance", "{0:##,##0}");
            this.txtSocial.DataBindings.Add("Text", base.DataSource, "Social", "{0:##,##0}");
            this.txtHealthInsurance1.DataBindings.Add("Text", base.DataSource, "HealthInsurance1", "{0:##,##0}");
            this.txtHealthInsurance.DataBindings.Add("Text", base.DataSource, "HealthInsurance", "{0:##,##0}");
            this.txtHealth.DataBindings.Add("Text", base.DataSource, "Health", "{0:##,##0}");
            this.txtUnemploymentInsurance1.DataBindings.Add("Text", base.DataSource, "UnemploymentInsurance1", "{0:##,##0}");
            this.txtUnemploymentInsurance.DataBindings.Add("Text", base.DataSource, "UnemploymentInsurance", "{0:##,##0}");
            this.txtUnemployment.DataBindings.Add("Text", base.DataSource, "Unemployment", "{0:##,##0}");
            this.txtTotalInsurance.DataBindings.Add("Text", base.DataSource, "TotalInsurance", "{0:##,##0}");
            this.txtTotalBasicSalary.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtTotalBasicSalary1.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtTotalSocialInsurance1.DataBindings.Add("Text", base.DataSource, "SocialInsurance1", "{0:##,##0}");
            this.txtTotalSocialInsurance.DataBindings.Add("Text", base.DataSource, "SocialInsurance", "{0:##,##0}");
            this.txtTotalSocial.DataBindings.Add("Text", base.DataSource, "Social", "{0:##,##0}");
            this.txtTotalHealthInsurance1.DataBindings.Add("Text", base.DataSource, "HealthInsurance1", "{0:##,##0}");
            this.txtTotalHealthInsurance.DataBindings.Add("Text", base.DataSource, "HealthInsurance", "{0:##,##0}");
            this.txtTotalHealth.DataBindings.Add("Text", base.DataSource, "Health", "{0:##,##0}");
            this.txtTotalUnemploymentInsurance1.DataBindings.Add("Text", base.DataSource, "UnemploymentInsurance1", "{0:##,##0}");
            this.txtTotalUnemploymentInsurance.DataBindings.Add("Text", base.DataSource, "UnemploymentInsurance", "{0:##,##0}");
            this.txtTotalUnemployment.DataBindings.Add("Text", base.DataSource, "Unemployment", "{0:##,##0}");
            this.txtTotalTotalInsurance.DataBindings.Add("Text", base.DataSource, "TotalInsurance", "{0:##,##0}");
            this.txtTotalBasicSalary.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalBasicSalary1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSocialInsurance1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSocialInsurance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSocial.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalHealthInsurance1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalHealthInsurance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalHealth.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalUnemploymentInsurance1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalUnemploymentInsurance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalUnemployment.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalTotalInsurance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
            this.colSocialInsurance.Text = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.SocialInsurance.ToString() + "%)";
            this.colHealthInsurance.Text = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.HealthInsurance.ToString() + "%)";
            this.colUnemploymentInsurance.Text = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.UnemploymentInsurance.ToString() + "%)";
            this.colSocialInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed (" + hrm_salary_tablelist.SocialInsurance1.ToString() + "%)";
            this.colHealthInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed (" + hrm_salary_tablelist.HealthInsurance1.ToString() + "%)";
            this.colUnemploymentInsurance1.Text = "Tr\x00edch v\x00e0o chi ph\x00ed (" + hrm_salary_tablelist.UnemploymentInsurance1.ToString() + "%)";
            this.colTotalInsurance.Text = "Tổng cộng (" + ((((((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.HealthInsurance) + hrm_salary_tablelist.UnemploymentInsurance) + hrm_salary_tablelist.SocialInsurance1) + hrm_salary_tablelist.HealthInsurance1) + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
            this.gBandSocialInsurance.Text = "Bảo hiểm x\x00e3 hội (" + ((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.SocialInsurance1)).ToString() + "%)";
            this.gBandHealthInsurance.Text = "Bảo hiểm y tế (" + ((hrm_salary_tablelist.HealthInsurance + hrm_salary_tablelist.HealthInsurance1)).ToString() + "%)";
            this.gBandUnemploymentInsurance.Text = "Bảo hiểm thất nghiệp (" + ((hrm_salary_tablelist.UnemploymentInsurance + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.txtTitle.Text = "DANH S\x00c1CH THAM GIA BẢO HIỂM X\x00c3 HỘI TH\x00c1NG " + this.m_Month.ToString() + "/" + this.m_Year.ToString();
            this.LoadAllData();
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";// MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

